package com.cimr.service.manager;

import com.cimr.comm.base.BaseService;
import com.cimr.dto.manager.UserInfoDto;
import com.cimr.po.manager.UserInfo;

import java.util.Date;
import java.util.List;

/**
 * Created by lenovo on 2017/12/25.
 */
public interface UserInfoService extends BaseService<UserInfo> {


    /**
     * 查询集合
     * @param userInfo
     * @return
     */
     List<UserInfo> getList(String username,String fullname,String phone,String email,Float orderId,String theme,
                            String nickName, String realName, String userType, String province, String city, String area,
                            String address, String sex, String orgId, String userId, String idCard,
                            String flag );

    /**
     * 批量删除
     * @param ids
     */
     String  deleteByArray(String[] ids);

    /**
     * 单个删除
     * @param userId
     */
    String delete(String userId);

    /**
     * 保存员工信息
     */
    String insert(String username,String pswd,String fullname,String phone,String email,String comment,Float orderId,String theme,
                 String nickName, String realName, String userType, String province, String city, String area,
                 String address, String sex, String orgId, String userId, String idCard,
                 String remarks, String flag ,String fileJson,String realPath);

    /**
     * 通过对象插入信息
     * @param userInfoDto
     */
    String insertByObj(UserInfoDto userInfoDto);

    /**
     * 更新员工信息
     */
    String update(String id,String username,String pswd,String fullname,String phone,String email,String comment,Float orderId,String theme,
                 String nickName, String realName, String userType, String province, String city, String area,
                 String address, String sex, String orgId, String userId, String idCard,
                 String remarks, String flag ,String fileJson,String realPath);

    /**
     * 通过对象更新信息
     * @param userInfoDto
     */
    String updateByObj(UserInfoDto userInfoDto);

    /**
     * 通过userId获取userInfo信息
     * @param userId
     * @return
     */
     UserInfo getByUserId(String userId);
}
